package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 离岗管理对象 per_leave_management
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerLeaveManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 离岗管理的唯一标识符 */
    private Long leaveId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String department;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String identification;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 离岗类别 */
    @Excel(name = "离岗类别")
    private String outType;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String approvalStatus;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    /** 离岗日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离岗日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setLeaveId(Long leaveId) 
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() 
    {
        return leaveId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setIdentification(String identification) 
    {
        this.identification = identification;
    }

    public String getIdentification() 
    {
        return identification;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setOutType(String outType) 
    {
        this.outType = outType;
    }

    public String getOutType() 
    {
        return outType;
    }
    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }
    public void setEntryDate(Date entryDate) 
    {
        this.entryDate = entryDate;
    }

    public Date getEntryDate() 
    {
        return entryDate;
    }
    public void setLeaveDate(Date leaveDate) 
    {
        this.leaveDate = leaveDate;
    }

    public Date getLeaveDate() 
    {
        return leaveDate;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leaveId", getLeaveId())
            .append("userName", getUserName())
            .append("department", getDepartment())
            .append("identification", getIdentification())
            .append("gender", getGender())
            .append("outType", getOutType())
            .append("approvalStatus", getApprovalStatus())
            .append("entryDate", getEntryDate())
            .append("leaveDate", getLeaveDate())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
